pp108 : oncolumnchange Event

oncolumnchange Event


This event is fired when the columns in the grid are swapped.

Syntax

Inline HTML

<TABLE id=tableID oncolumnchange="handler()"...>

Event property

tableID.oncolumnchange = handler


Event Information

To invoke

Click on a column and drag it to replace or swap its current position.

Default Action

Initiates any action associated with this event.


Event Object Properties


Although event handlers in the DHTML Object Model do not receive parameters directly, a handler can query an event object for data.

Property

Description

fromColumn

Read-only. Integer that denotes the index of column that is moved.

tableID

Read-only. String that denotes the unique identifier of the table.

toColumn

Read-only. Integer that denotes the new position of the column.


See Also


grid